<?php
/**
 * Created by PhpStorm.
 * User: yucheng
 * Date: 2017/11/27
 * Time: 11:15
 */

namespace app\admin\controller;

use think\facade\Config;

class Index
{
	public function index()
	{
		$hostName = Config::get('database.hostname');
		$test = Config::get('test.type');
		dump([$hostName,$test]);
	}

	//登录
	public function login()
	{
		$json_arr = json_encode([
			'a' => 1,
			'b' => 2,
		]);
		echo $json_arr;
//		return "登录页";
	}

}
